<?php
/**
 * Created by litong on Date: 2018/12/24 0024 上午 10:24
 */
class Bar{
  public function testPublic(){
    echo "Bar::testPublic \n";
  }
  private function testPrivate(){
    echo "Bar::testPrivate \n";
  }
  public function test(){
    $this->testPrivate();
    $this->testPublic();
  }
}
class Foo extends Bar{
  public function testPublic(){
    echo "Foo::testPublic \n";
  }
  private function testPrivate(){
    echo "Foo::testPrivate \n";
  }
}
$myFoo=new Foo();
$myFoo->test();




// 实现接口
?>